package com.deewin.provider.listener;

import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.InvokerListener;
import org.apache.dubbo.rpc.RpcException;

public class CustomInvokerListener implements InvokerListener {
    @Override
    public void referred(Invoker<?> invoker) throws RpcException {
        System.out.println("Service is being destroyed: " + invoker.getUrl());
    }

    @Override
    public void destroyed(Invoker<?> invoker) {
        // 在服务销毁时执行的操作
        System.out.println("Service is being destroyed: " + invoker.getUrl());
    }
}